#! /usr/bin/env python
# -*- coding: utf-8 -*-

# *************************************************************
#     Filename @  callable_obj.py
#       Author @  Huoty
#  Create date @  2016-07-22 20:21:34
#  Description @  
# *************************************************************

class TestObj(object):
    def __init__(self, x):
        self.x = x

    def __call__(self, y):
        return self.x + y

# Script starts from here

if __name__ == "__main__":
    t = TestObj(3)
    print t(5)
